import {defineStore} from 'pinia'
import {ref} from 'vue'
export const menuList = defineStore('menuList',()=>{
    const list = ref(['/','/home','/news'])
    function reset():void{
        list.value =[]
    }
    function set(param:Array<string>):void{
        let temp =list.value
        list.value = [...temp,...param]
    }
    return {list,reset,set}
})
